package com.itheima.chapter10.thread.demo4;
//线程类的获取方法1
public class Demo {
    public static void main(String[] args) {
        MyThread mt =new MyThread();
        /*Thread t =new Thread(mt);
        t.start();//Thread-0*/
        mt.start();//Thread-0
        new MyThread().start();//Thread-1
        new MyThread().start();//Thread-2
        new MyThread().start();//Thread-3
    }
}
